package com.c3w.synchro.common.upload;

import org.springframework.web.multipart.commons.CommonsMultipartFile;

/**
 * User: P.Lalonde
 * Date: 13-02-20
 */
public class FileUpload {

    private String name = null;
    private CommonsMultipartFile file = null;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CommonsMultipartFile getFile() {
        return file;
    }

    public void setFile(CommonsMultipartFile file) {
        this.file = file;
        this.name = file.getOriginalFilename();
    }

}
